<layout name="layout"/>

<load href="__PUBLIC__/App/service/LoginService.js"/>
<load href="__PUBLIC__/App/controller/LoginController.js"/>
<form name="login_form" ng-controller="LoginController" ng-submit="loginHandle('__CONTROLLER__/loginHandle')" novalidate>
<h1>{{display_data.login_title}}</h1>
  <div ng-if="display_data.return_status===0" class="alert alert-danger">{{display_data.return_info}}</div>
  <div ng-if="display_data.return_status===1" class="alert alert-success">{{display_data.return_info}}</div>
  <div class="form-group  has-feedback">
    <label for="exampleInputEmail1">{{display_data.login_email}}</label>
    <input type="email" class="form-control" name="login_email" ng-model="submit_data.login_email" required  id="exampleInputEmail1" placeholder="Enter email">
	                        <span style="color:green;" class="glyphicon glyphicon-ok form-control-feedback"
                              ng-if="login_form.login_email.$dirty && login_form.login_email.$valid"></span>
  </div>
  <div class="form-group has-feedback">
    <label for="exampleInputPassword1">{{display_data.login_pwd}}</label>
    <input type="password" class="form-control" name="login_pwd" ng-model="submit_data.login_pwd" required id="exampleInputPassword1" placeholder="Password">
		                        <span style="color:green;" class="glyphicon glyphicon-ok form-control-feedback"
                              ng-if="login_form.login_pwd.$dirty && login_form.login_pwd.$valid"></span>
  </div>
  <p>
  <button type="submit" ng-disabled="display_data.wait_status || login_form.$invalid" class="btn btn-default">
  	<i  ng-if="display_data.wait_status" class="fa fa-spinner fa-pulse"></i>
  {{display_data.wait_status?display_data.login_button_wait:display_data.login_button}}</button>
</p>

</form>
<hr>